package refactoring.replaceSubclassWithDelegate.refactoring;

/**
 * <描述>
 *
 * @author timothy.yang cloudwise
 * @since 2022-05-26 23:32
 */
public class Main {
    public static void main(String[] args) {
        BirdParam birdParam = new BirdParam();
        birdParam.setType(Bird.BirdType.AfricanSwallow);
        birdParam.setName("april");
        Bird bird = new Bird();
        BirdDelegate birdDelegate = bird.selectSpeciesDelegate(birdParam);
        birdDelegate.airSpeedVelocity();
    }
}
